package com.itheima.service;

import com.itheima.dao.impl.EmployeeImpl;


public class EmployeeService {

    EmployeeImpl employee;

    public void setEmployee(EmployeeImpl employee) {
        this.employee = employee;
    }

    public void checkout(String username1,String username2, Double money){

        employee.reduceAccounts(username1,money);

		//int i = 1/0;
        employee.addAccounts(username2,money);

    }
}
